<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	var aaa = {
		aaa1: function() {
			console.log('aaa.aaa1执行')
			this.aaa2++
		},
		aaa2: 100,
	}
	console.log('aaa.aaa1执行前aaa.aa2：' + aaa.aaa2)
	aaa.aaa1()
	console.log('aaa.aaa1执行后aaa.aa2：' + aaa.aaa2)

	// 删除对象
	delete aaa.aaa2
	console.log('删除aaa.aaa2后：' + aaa.aaa2)

	//-------------------------------------------------------------------------------
	// 自定义函数里面添加属性，在外部通过定义可以调用
	function bbb() {
		this.b1 = 'b1',
			this.b2 = 'b2',
			this.b3 = function() {
				console.log('自定义函数里加函数，在外面调用时可以调用。00001111')
			}
		//		return this
	}
	var bbb1 = new bbb()
	bbb1.b3()




	// 获取字符的code码
	var str = 'nihao! 你好'
	console.log(str.charCodeAt(0))
</script>
